package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.constant.CommonConstant
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "en_exam_result_confirm_check")
@TableName("en_exam_result_confirm_check")
@ApiModel(value = "考试监督员考试结果确认审核")
data class ExamResultConfirmCheck(

        @ApiModelProperty("员工正式考试记录id")
        var officialExamRecordId: String? = null,

        @ApiModelProperty("监管部门考试监督员id")
        var supervisionUserId: String? = null,

        @ApiModelProperty("审核状态")
        var checkStatus: Int? = CommonConstant.PRE_CHECK,

        @ApiModelProperty("审核员")
        var checkUserId: String? = null,

        @ApiModelProperty("审核原因")
        var checkReason: String? = null

) : XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()

    companion object{
        private const val serialVersionUID = 1L
    }
}